import Vue from 'vue'
import Router from 'vue-router'
Vue.use(Router)

export default new Router({
	mode: 'hash',
	routes: [{
			path: '/',
			name: 'Home',
			component: () => import('@/views/home'),
			children: [{
					path: '/menu',
					name: 'Menu',
					component: () => import('@/views/menu')
				}, {
					path: '/bed',
					name: 'Bed',
					component: () => import('@/views/bed')
				}, {
					path: '/bed_record',
					name: 'BedRecord',
					component: () => import('@/views/bed_record')
				}, {
					path: '/case_history',
					name: 'CaseHistory',
					component: () => import('@/views/case_history')
				}, {
					path: '/health_file',
					name: 'HealthFile',
					component: () => import('@/views/health_file')
				}, {
					path: '/kf_register',
					name: 'KfRegister',
					component: () => import('@/views/kf_register')
				}, {
					path: '/kf_record',
					name: 'KfRecord',
					component: () => import('@/views/kf_record')
				}, {
					path: '/kf_program',
					name: 'KfProgram',
					component: () => import('@/views/kf_program')
				}, {
					path: '/register',
					name: 'Register',
					component: () => import('@/views/register')
				}, {
					path: '/user',
					name: 'User',
					component: () => import('@/views/user')
				}, {
					path: '/exit_registration',
					name: 'ExitRegistration',
					component: () => import('@/views/exit_registration')
				}, {
					path: '/go_to_register',
					name: 'GoToRegister',
					component: () => import('@/views/go_to_register')
				}, {
					path: '/meals_menology',
					name: 'MealsMenology',
					component: () => import('@/views/meals_menology')
				}, {
					path: '/meals',
					name: 'Meals',
					component: () => import('@/views/meals')
				}, {
					path: '/nurse_class',
					name: 'NurseClass',
					component: () => import('@/views/nurse_class')
				}, {
					path: '/n_content',
					name: 'NContent',
					component: () => import('@/views/n_content')
				}, {
					path: '/nurse_record',
					name: 'NurseRecord',
					component: () => import('@/views/nurse_record')
				}, {
					path: '/service_object',
					name: 'ServiceObject',
					component: () => import('@/views/service_object')
				}, {
					path: '/services_focus',
					name: 'ServicesFocus',
					component: () => import('@/views/services_focus')
				}, {
					path: '/daily_care',
					name: 'DailyCare',
					component: () => import('@/views/daily_care')
				}, {
					path: '/emergency_management',
					name: 'EmergencyManagement',
					component: () => import('@/views/emergency_management')
				}, {
					path: '/work_diary',
					name: 'WorkDiary',
					component: () => import('@/views/work_diary')
				}, {
					path: '/staff_management',
					name: 'StaffManagement',
					component: () => import('@/views/staff_management')
				}, {
					path: '/life_plan',
					name: 'LifePlan',
					component: () => import('@/views/life_plan')
				}, {
					path: '/lomenu',
					name: 'Lomenu',
					component: () => import('@/views/lomenu')
				}, {
					path: '/louser',
					name: 'Louser',
					component: () => import('@/views/louser')
				}, {
					path: '/lorole',
					name: 'Lorole',
					component: () => import('@/views/lorole')
				},
				{
					path: '/user-role',
					name: 'UserRole',
					component: () => import('@/views/louser/user-role')
				},
				{
					path: '/role-permiss',
					name: 'RolePermiss',
					component: () => import('@/views/lorole/role-permission')
				},
				{
					path: '/exit_approval',
					name: 'ExitApproval',
					component: () => import('@/views/exit_approval')
				}
			]
		},
		{
			path: '/login',
			name: 'Login',
			component: () => import('@/views/login')
		}
	]
})
